package com.example.jetpacktest.activity

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProvider
import com.example.jetpacktest.R
import com.example.jetpacktest.databinding.ActivityRetrofitTest1Binding
import com.example.jetpacktest.viewmodel.RetrofitTest1ViewModel

class RetrofitTest1Activity: AppCompatActivity() {

    private lateinit var binding: ActivityRetrofitTest1Binding

    private lateinit var viewModel: RetrofitTest1ViewModel

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_retrofit_test_1)
        viewModel = ViewModelProvider(this).get(RetrofitTest1ViewModel::class.java)
        binding.viewModel = viewModel
        binding.lifecycleOwner = this
    }


}